import request from '@/utils/request'

// 查询教学班学生列表
export function listEduStudent(query) {
  return request({
    url: '/education/eduStudent/list',
    method: 'get',
    params: query
  })
}

// 查询教学班学生详细
export function getEduStudent(id) {
  return request({
    url: '/education/eduStudent/' + id,
    method: 'get'
  })
}

// 新增教学班学生
export function addEduStudent(data) {
  return request({
    url: '/education/eduStudent',
    method: 'post',
    data: data
  })
}

// 修改教学班学生
export function updateEduStudent(data) {
  return request({
    url: '/education/eduStudent',
    method: 'put',
    data: data
  })
}

// 删除教学班学生
export function delEduStudent(id) {
  return request({
    url: '/education/eduStudent/' + id,
    method: 'delete'
  })
}

// 导出教学班学生
export function exportEduStudent(query) {
  return request({
    url: '/education/eduStudent/export',
    method: 'get',
    params: query
  })
}

// 下载导入模板
export function importTemplate() {
  return request({
    url: '/education/eduStudent/importTemplate',
    method: 'get'
  })
}